package it.polimi.TravelDream;

import java.util.List;

import javax.ejb.Local;

@Local
public interface PackageMgr {

	public void saveBasePackage(BasePackageDTO BPDTO,List<ExcursionDTO> EL);

	public void saveSavedPackage(SavedPackageDTO SPDTO,List<ExcursionDTO> EL);
	
	public void deleteBasePackage(BasePackageDTO BPDTO);

	public void updateSavedPackage(SavedPackageDTO savedPackageDTO,
			List<ExcursionDTO> excursionlist);

	public void updateBasePackage(BasePackageDTO basePackage,
			List<ExcursionDTO> selectedExcursionsList);

	void insertNewJoin(PackagejoinDTO packJDTO);

	public void deleteSavedPackage(SavedPackageDTO savedPackageDTO);
	
	public boolean checkIfJoined(int joinerID,int packID);

	public void confirmSavedPackage(SavedPackageDTO savedPackage,
			List<ExcursionDTO> excList);

	int searchExcToBePaid(int packID);

	public void payment(SavedPackageDTO savedPackage, int totalPaied,
			String messagePayer, String namePayer, int excToBePaid);
}
